using System;

namespace NobleTech.Products.CreatureKingdom
{
    public class WorldStats
    {
        public static readonly Random RandomGenerator = new Random();
        // The amount by which any creature attribute can be mutated in either direction
        public float Mutation = 0.15f;
        public double Mutate(double value)
        {
            return value * (1 + Mutation * 2 * RandomGenerator.NextDouble() - Mutation);
        }
        public uint Mutate(uint value)
        {
            return (uint)Mutate((double)value);
        }
    }
}
